export default interface CategoryShare {

    updateAppMessageShareData(param: IWxJsSDKUpdateAppMessageShareParam): void;

    updateTimelineShareData(param: IWxJsSDKUpdateTimelineShareParam): void;

    onMenuShareWeibo(param: IWxJsSDKMenuShareWeiboParam): void;

}

export interface IWxJsSDKMenuShareWeiboParam extends IWxJsSDKUpdateAppMessageShareParam {
    cancel?: () => void;
}

export interface IWxJsSDKUpdateAppMessageShareParam
    extends IWxJsSDKUpdateTimelineShareParam {
    desc: string; // 分享描述
}

export interface IWxJsSDKUpdateTimelineShareParam {
    title: string; // 分享标题
    link: string; // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
    imgUrl: string; // 分享图标
    success?: () => void;
}
